package com.googlecode.imanager.client.value.format;

import java.io.Serializable;

import com.googlecode.imanager.client.value.ValueType;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public abstract class Formatter<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    public abstract String format(T value);
    
    public String format(Object value, ValueType valueType) {
        return value == null ? null : value.toString();
    }
    
}
